package com.gency.subscribe.web.configuration.ini;

import java.io.IOException;
import java.lang.reflect.Type;

import com.alibaba.fastjson.serializer.JSONSerializer;
import com.alibaba.fastjson.serializer.ObjectSerializer;

public class LongFormatSerializer implements ObjectSerializer{

	private static LongFormatSerializer ins = new LongFormatSerializer();


	public static LongFormatSerializer getInstance() {
		if (ins == null) {
			ins = new LongFormatSerializer();
		}
		return ins;
	}
	@Override
	public void write(JSONSerializer serializer, Object object, Object fieldName, Type fieldType, int features)
			throws IOException {
		serializer.write(String.valueOf(object));
	}

	
}
